Skip to main content

modifyEcs

Description

Modify ecs instance configuration.

Request Method

PUT

Request Path

/customer/ecs/modify

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
instanceIdBODYstringYesNo sample value for this parameter.Theinstanceidoftheecs.
regionIdBODYstringYesNo sample value for this parameter.Theregionidoftheecs.
instanceTypeBODYstringYesNo sample value for this parameter.Theinstancetypeoftheecs.
instanceFamilyBODYstringYesNo sample value for this parameter.Theinstancefamilyoftheecs.

Return data

NameTypeSample valueDescription
resultobject`{"instanceId":"340135489875931136","orderId":2.02207271417009997E+18}`result
resultCodestring0result code
resultMsgstringsuccessresult message

Example

Successful Response example

{
"result":
{
"instanceId":"340135489875931136",
"orderId":2.02207271417009997E+18
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}